import axios from 'axios'

const service = axios.create({
    timeout:60000,
    headers:{
        "Content-Type":'application/json;charset=UTF-8'
    }
})
//ajax拦截
service.interceptors.request.use(config=>{
    return config
})
//服务器响应
service.interceptors.response.use(res=>{
    if (res.status == 200) {
        return res.data 
    }
},error=>{

})

export default service